<template>
  <div>
    <!-- 景区内容展示 -->
    <!-- 列表 -->
    <div
      class="scenicList"
      v-for="item in searchTipsListData"
      :key="item.sid"
      @click="toSciencesDetail(item.sid)"
    >
      <div class="ListImg">
        <img :src="`/img/scenic/${item.img}`" alt="" />
      </div>
      <div class="ListText">
        <div>
          <h4>{{ item.title }}</h4>
          <p>{{ item.xsite }}</p>
        </div>
        <div class="ListTextBottom">
          <div>
            <span>{{ item.p_count }}</span>
          </div>
          <div>
            <span>¥</span>
            <span>{{ item.p_price }}</span>
            <span>.00</span>
            <span>起</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
      banner: [],
    };
  },
  props: ["searchTipsListData"],
  methods: {
    toSciencesDetail(id) {
      this.$router.push("/sciencesDetail?sid=" + id);
    },
  },
};
</script>

<style lang="scss" scoped>
.van-search {
  position: fixed;
  top: 0px;
  z-index: 100;
  width: 100%;
}
.scenicList {
  background-color: #fff;
  margin-top: 3vw;
  display: flex;
  height: 36.5vw;
  .ListImg {
    flex-basis: 36.5vw;
    img {
      width: 30vw;
      height: 30vw;
      padding: 3vw;
      border-radius: 8px;
    }
  }
  .ListText {
    flex-grow: 1;
    padding: 3vw 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    h4 {
      font-size: 18px;
      font-weight: 600;
    }
    p {
      padding-top: 3vw;
      font-size: 12px;
      color: #969799;
    }
    .ListTextBottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      div:first-child {
        color: #969799;
        font-size: 14px;
      }
      div:last-child {
        span:first-child,
        span:nth-child(3) {
          color: red;
          font-weight: 800;
          font-size: 12px;
        }
        span:nth-child(2) {
          color: red;
          font-weight: 800;
          font-size: 18px;
        }
        span:last-child {
          color: #969799;
          font-size: 12px;
          margin-right: 3vw;
        }
      }
    }
  }
}
</style>